﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using Microsoft.Owin;

namespace WebFabricator.org
{
    public class WebFabrication : OwinMiddleware
    {
        public WebFabrication(OwinMiddleware next)
            : base(next)
        {
       
        }
      
        public override async Task Invoke(IOwinContext context)
        {
            await Task.Run(()=>
            {
                new WebFabricator.org.Fabricator<IOwinContext>().Fabricate(context);
            });
        }
    }
}